/* Variables for reusable values */
:root {
  --primary-color: #124e84;
  --text-dark: #212121;
  --text-muted: #797979;
  --table-bg-even: #f9f9f9;
  --table-bg-hover: #f3f3f3;
  --border-color: #ddd;
}

/* Base styles */
h1 { color: var(--text-dark); }

h1::after {
  background: #1b76c7;
  bottom: 10px;
  display: block;
  content: "";
  height: 1px;
  margin: 5px auto 10px auto;
  width: 100%;
}

* { box-sizing: border-box; }
.column { float: left; padding: 0 5px; }
.left { width: 50%;}
.right { width: 50%; }
.row:after { content: ""; display: table; clear: both; }

body {
  background-image: url("https://jbu_ftp.sidearmsports.com/custompages/css/gameday/background-blue-repeat.jpg");
  background-repeat: repeat;
  background-color: #eeef0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}

th, td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  background-color: var(--primary-color);
  color: white;
}

tr:nth-child(even) {
  background-color: var(--table-bg-even);
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease-in-out;
}

tbody tr:hover {
  background-color: var(--table-bg-hover);
}

thead, tbody {
  font-size: 12px;
}

:target {
  scroll-margin-top: 150px;
}

h4 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 30px 0 -15px;
  color: var(--primary-color);
}

.header-title {
  font-weight: bold;
}

.min-games {
  font-size: 0.8em;
  color: var(--text-muted);
  font-style: italic;
  font-weight: normal;
}

.special-note {
  font-size: 0.8em;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 5px;
}

/* Desktop layout */
@media (min-width: 769px) {
  table { table-layout: fixed; }  
  th:nth-child(1), td:nth-child(1) { width: 10%; }
  th:nth-child(2), td:nth-child(2) { width: 20%; }
  th:nth-child(3), td:nth-child(3) { width: 40%; }
  th:nth-child(4), td:nth-child(4) { width: 30%; }
}

/* Tablet and mobile */
@media (max-width: 768px) {
  table {
    white-space: nowrap;
    width: 100%;
  }
  
  .extra-wide {
    display: block;
    overflow-x: auto;
  }
  
  .min-games {
    display: block;
    margin-top: 2px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  th, td {
    padding: 8px;
  }
  .column {
    width: 100%;
    padding: 0;
  }
}